<div style="clear: both; padding: 20px 0px 10px 0px; border-bottom: dotted 1px #fff;">Zobacz inne galerie </div>

{section name=id loop=$kategorie}
<div class="kategorie-photogallery-small{if $kateg.pgID eq $kategorie[id].pgID}-selected{/if}"  title="{$kategorie[id].pgNazwa|wordwrap:17:" ":true|html2text}">

	{section name=th start=0 loop=$settings_photogallery.lista_kategorii_liczba_thumb|default:6 step=1} 
		
		{assign var=params0 value='PhotoGallery,ikonyGaleriiMale,'}
		{assign var=params1 value=$kategorie[id].pgID}
		{assign var=params2 value=';'}
		{assign var=params3 value=$smarty.section.th.index}
		{dispatcher->handleEvent v=$params0$params1$params2$params3}
	
	{/section}
</div>
{/section}

<script type="text/javascript">
	//<![CDATA[
	$(document).ready(function(){ldelim}

		var border_color='';
		var background_color='';
		$(".kategorie-photogallery-small").mouseover(function(){ldelim}
			border_color = $(this).css("border-color");
			background_color = $(this).css("background-color");
			$(this).css("border-color","#00ff00");
			$(this).css("background-color","#dfdfdf");
		{rdelim}).mouseout(function(){ldelim}
			$(this).css("border-color",border_color);
			$(this).css("background-color",background_color);
		{rdelim});
				
	{rdelim});
	//]]>
</script>